//polygon drawing  Claas



#ifndef POLYGON_H
#define POLYGON_H



#include "MyDisplay.h"
#include "Line.h"
#include "Matrix.h"

#include <fstream>
#include <math.h>

using namespace std;

class Polygon:public Line{

   public:
   
    Matrix *points;   
   
    Polygon();
    Polygon(const char *fileName,const MyDisplay &another);
    Polygon(const MyDisplay &another);
    Polygon(const Matrix &R);
    
    ~Polygon();
    
    //draw Polygon
     bool draw();
     
     bool draw(const Matrix &T);
     
    // draw Polygon from file
     bool draw(const char *fileName);
  
     bool change(const int x,const int y = 0);
        
 };
 
 #endif
 
 
 
 
